<?php
/**
 * Created by PhpStorm.
 * User: 肖晟
 * Date: 2021/11/29
 * Time: 20:08
 */

echo "完整地址";
echo $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
echo '<br />';
echo "用户IP";
echo $_SERVER["REMOTE_ADDR"];
echo '<br />';
echo "请求方法";
echo $_SERVER["REQUEST_METHOD"];
echo '<br />';
echo "URL参数";
var_dump($_GET);
echo '<br />';
echo "POST数据";
var_dump($_POST);